<template>
  <div class="container">
    <!-- <h2>宽带采集远程桌面</h2> -->
    <iframe :src="url" width="100%" height="100%" frameborder="0"></iframe>
  </div>
</template>

<script>
import { netGetAPI } from '@/api/index'
export default {
  name: 'RemoteDesktop',
  data () {
    return {
      url: ''
    }
  },
  created () {
    netGetAPI()
      .then(({ data }) => {
        // console.log('url', data.collectDeskURL)
        if (!data.collectDeskURL) return this.$message.warning('未获取到宽带采集远程桌面URL！')
        this.url = data.collectDeskURL
      })
      .catch((err) => {
        console.log(err)
      })
  }
}
</script>

<style lang="less" scoped>
.container {
  width: 100%;
  padding: 0;
  height: calc(100vh - 52px);
}
</style>
